@extends('admin/layout')
@section('title','商品管理')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    商品列表
    <small>商品列表</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-users"></i> 商品管理</li>
    <li><a href="{{asset('admin/member')}}"><i class="fa fa-user"></i> 商品列表</a></li>
    <li class="active">商品列表</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
  <div class="row">
    <div class="col-md-12">
      <!-- box start -->
      <div class="box box-info">
      <div class="box-header with-border">
        <h3 class="box-title"><i class="fa fa-user"> 商品列表</i></h3>
      </div>
      <div class="box-body">
        <div class="row">
          <div class="col-md-3">
            <div class="btn bg-orange">人群</div>
          </div>
        </div>
        <div class="row">
          &nbsp;
        </div>
        
        <div class="row">
          &nbsp;
        </div>
        <div class="table-responsive">
        <table id="member_list" class="table table-bordered table-striped text-center">
          <thead>
          <tr>
            <th>ID</th>
            <th>人群类型</th>
            <th>Code</th>
            <th>运动类型</th> 
          </tr>
          </thead>
          <tbody>
          @foreach($cdata as $key => $val)
          <tr>
            <td>{{$val->crowd_id}}</td>
            <td>{{$val->crowd_type}}</td>
            <td>{{$val->crowd_pro_code}}</td>
            <td>
            @foreach($val ->sub as $k => $v)
            --{{$v -> sport_type}}--
            @endforeach
            </td>
          </tr> 
          @endforeach
          </tbody>
          <tfoot>
          <tr>
            <th colspan="5"></th>
            <th colspan="3">
              
            </th>
          </tr>
          </tfoot>
        </table>
        </div>
        </div>
        <p>&nbsp;</p>




        <div class="box-body">
        <div class="row">
          <div class="col-md-3">
            <div class="btn bg-orange">运动类型</div>
          </div>
        </div>
        <div class="row">
          &nbsp;
        </div>
        
        <div class="row">
          &nbsp;
        </div>
        <div class="table-responsive">
        <table id="member_list" class="table table-bordered table-striped text-center">
          <thead>
          <tr>
            <th>ID</th>
            <th>运动类型</th>
            <th>Code</th>
            <th>适合人群</th> 
          </tr>
          </thead>
          <tbody>
          @foreach($pdata as $key => $val)
          <tr>
            <td>{{$val->sport_id}}</td>
            <td>{{$val->sport_type}}</td>
            <td>{{$val->sport_pro_code}}</td>
            <td>
            @foreach($val ->sub as $k => $v)
            --{{$v -> crowd_type}}--
            @endforeach
            </td>
          </tr> 
          @endforeach
          </tbody>
          <tfoot>
          <tr>
            <th colspan="5"></th>
            <th colspan="3">
            </th>
          </tr>
          </tfoot>
        </table>
        </div>
        </div>

        <div class="box-body">
        <div class="row">
        <div>
          <div class="col-md-3">
            <div class="btn bg-orange">品牌列表</div>
          </div>
          
          <div class="col-md-3">
            <button onclick="window.location.href='{{asset('admin/member/create')}}'" class="btn bg-orange">添加品牌</button>
          </div>
          </div>
        </div>
        <div class="row">
          &nbsp;
        </div>
        <form class="form-inline" action="{{asset('admin/member')}}" method="get">
          <div class="form-group">
            <label for="inputname" class="">品牌名称</label>&nbsp;
            <input id="inputname" type="text" class="form-control">
          </div>
          <div class="form-group" style="float:right">
            <button class="btn bg-purple">查询</button>
          </div>
          <div class="form-group " style="float:right">
            <label>每页条数</label>&nbsp;
            <select class="form-control" >
              <option>10</option>
              <option>20</option>
              <option>30</option>
            </select>
          </div>
          
        </form>
        <div class="row">
          &nbsp;
        </div>
        <div class="table-responsive">
        <table id="member_list" class="table table-bordered table-striped text-center">
          <thead>
          <tr>
            <th>ID</th>
            <th>品牌</th>
            <th>Logo</th>
            <th colspan="3">操作</th>
          </tr>
          </thead>
          <tbody>
          @foreach($bdata as $k => $v)
          <tr>
            <td><input type="checkbox">{{$v->brand_id}}</td>
            <td>{{$v->brand_name_en}}</td>
            <td><img style="width:100px;" src="/uploads/product/brand/{{$v->brand_logo}}"></td>
            <td>
              <a href="/admin/classify/{{$v->brand_id}}/brandedit">
                <button class="btn-xs btn-warning">编辑</button>
              </a>
            </td>
           </tr>
          @endforeach
          </tbody>
          <tfoot>
          <tr>
            <th colspan="3">
              <button type="button" class="btn-xs btn-primary">全选</button>
              <button type="button" class="btn-xs btn-primary">不选</button>
              <button type="button" class="btn-xs btn-primary">反选</button>
            </th>
            <th colspan="5"></th>
           
          </tr>
          </tfoot>
        </table>
        </div>
        </div>
      <!-- /.box-body -->
      <!-- /.box -->        
    </div>
  </div>
</section>
<!-- /.content -->
@stop